<?php

    class Application_Form_LoginForm extends Zend_Form
    {

        public function init()
        {
            $this->setMethod("post");

            $this->addElement("text", "user_email", array(
                "placeholder" => "Email",
                "class" => "input",
                "required" => "true"
            ));

            $this->addElement("password", "user_password", array(
                "placeholder" => "Password",
                "class" => "input",
                "required" => "true"
            ));

            $this->addElement("submit", "submit_button", array(
                "label" => "Log In",
                "class" => "rbox yebutton fr"
            ));

            $elements = $this->getElements();
            foreach ($elements as $element)
            {
                $element->removeDecorator("DtDdWrapper")->removeDecorator("HtmlTag")->removeDecorator("Label");
            }
        }

    }
